<%@ page contentType="text/html; charset=UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"  
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<%@ include file="/WEB-INF/jsp/includes/common.jsp"%>
<html>
	<head>
		<%@ include file="/WEB-INF/jsp/includes/head.jsp"%>
		<script type="text/javascript" src="${ctx }/js/lib/jquery.validate.js"></script>
		<script type="text/javascript" src="${ctx }/js/lib/jquery.validate.messages_cn.js"></script>
		<script type="text/javascript" src="${ctx }/js/base/validateinfo.js"></script>
		<script type="text/javascript" src="${ctx }/js/account/accountmanage.js"></script>
	</head>
	<body>
		<%@ include file="/WEB-INF/jsp/includes/logo.jsp"%>
		<div class="container">
			<div class="main clearfix">
				<%@ include file="/WEB-INF/jsp/includes/nav.jsp"%>	
				<div class="container2 fl">
					<div class="main">
						<h4><span>用户信息管理</span></h4>
						<form action="${ctx }/account/index.do" method="post" id="searchAccountForm">
							<p class="validate-tips">${error }</p>
							<section class="sth-form2 hd mt10 clearfix">
								<div class="item">
									<label>账号名称：</label>
									<input type="text" name="loginName" value="${loginName}" >
								</div>
								<div class="item">
									<label>
										<span>所属部门：</span>
									</label>
									<input type="text" name="dept" value="${dept}" >
								</div>
								<div class="item">
									<label>
										<span>用户姓名：</span>
									</label>
									<input type="text" name="userName" value="${userName}" >
								</div>
								<div class="item">
									<label>
										<span>账号类型：</span>
									</label>
									<select name="type">
										<nad:option name="type" list="#{'':请选择,1:普通账号,2:管理员账号}" />
									</select>
								</div>
								<div class="item">
									<label>
										<span>使用状态：</span>
									</label>
									<select name="status">
										<nad:option name="status" list="#{'':请选择,0:锁定,1:正常}" />
									</select>
								</div>
								<div class="item oper">
									<input type="button" class="btn btn2" value="查询" id="searchAccountButton" />
								</div>
							</section>
						</form>
						<div class="content">
							<div class="cont mt10">
								<table cellspacing="0" border="1" width="100%">
									<thead>
										<tr>
											<th width="50">选择</th>
											<th width="140">登陆账号</th>
											<th width="140">用户姓名</th>
											<th width="140">所属部门</th>
											<th width="140">账号类型</th>
											<th width="60">状态</th>
											<th>操作</th>
										</tr>
									</thead>
									<c:if test="${page.total>0 }">
										<nad:table dataList="${page.dataList }" trans="${trans}">
											<tbody>
												<nad:row>
													<c:if test="${DATALIST_CURRENTROW%2==0 }">
														<tr class="odd">
													</c:if>
													<c:if test="${DATALIST_CURRENTROW%2==1 }">
														<tr class="even">
													</c:if>
														<td><input type="checkbox" value="<nad:col name="id"/>" name="adminId"/></td>
														<td><nad:col name="login_name"/></td>
														<td><nad:col name="name"/></td>
														<td><nad:col name="dept"/></td>
														<td><nad:col name="type"/></td>
														<td><nad:col name="valid"/></td>
														<td>
															<a href="#" class="update-userinfo-link" aid="<nad:col name="id"/>" login_name="<nad:col name="login_name"/>" username="<nad:col name="name"/>" dept="<nad:col name="dept" trans="false"/>" type="<nad:col name="type" trans="false"/>" status="<nad:col name="status"/>" >修改</a>
															<a href="#" class="is-reset-password" aid="<nad:col name="id"/>" >重置密码</a>
														</td>
													</tr>
												</nad:row>
											</tbody>
										</nad:table>
									</c:if>
									<c:if test="${page.total<=0 }">
										<tr class="no-results">
											<td colspan="100%">未查询到结果！</td>
										</tr>
									</c:if>
								</table>
							</div>
							<div class="ft mt10 clearfix">
								<div class="fl">
									<span class="mr10">
										<input type="checkbox" class="checked-all" />全选
									</span>
									<span class="oper">
										<input class="btn btn2 add-userinfo-link" type="button" value="添加" />
										<input class="btn btn2 is-delete" type="button" value="删除" />
										<input class="btn btn2 is-lock" type="button" value="锁定" />
										<input class="btn btn2 is-unlock" type="button" value="解锁" />
									</span>
								</div>
							</div>
							<div class="pageno">
								<c:if test="${page.total>0 }">
									<nad:pagebar page="${page }" action="${ctx }/account/index.do" />
								</c:if>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
</div>
		
			<!-- 弹出层 -->
			<!-- 添加用户 -->
		<div id="add-userinfo" title="添加用户" class="hidden">
			<form action="" method="" id="addAccountForm">
				<fieldset>
					<p class="validate-tips"></p>
					<p class="item">
						<label for="accountname1"><i>*</i>账号名称：</label>
						<input type="text" name="accountname1" id="accountname1" class="text ui-widget-content ui-corner-all"  />
					</p>
					<p class="item">
						<label for="depart"><i>*</i>所属部门：</label>
						<input type="text" name="depart1" id="depart1" class="text ui-widget-content ui-corner-all"  />
					</p>
					<p class="item">
						<label for="username1"><i>*</i>用户姓名：</label>
						<input type="text" name="username1" id="username1" class="text ui-widget-content ui-corner-all"  />
					</p>
					<p class="item">
						<label><i>*</i>账号类型：</label>
						<select id="accounttype1" name="accounttype1">
							<nad:option name="accounttype1" list="#{'':请选择,1:普通账号,2:管理员账号}" />
						</select>
					</p>
				</fieldset>
			</form>
		</div>
		<!-- 修改用户 -->
		<div id="update-userinfo" title="修改用户" class="hidden">
			<form id="updateForm" action="" method="post">
				<fieldset>
					<p class="validate-tips"></p>
					<p class="item">
						<label>账号名称：</label>
						<span id="accountname2">LC0921</span>
					</p>
					<p class="item">
						<label for="depart"><i>*</i>所属部门：</label>
						<input type="text" name="depart2" id="depart2" class="text ui-widget-content ui-corner-all" />
					</p>
					<p class="item">
						<label for="username"><i>*</i>用户姓名：</label>
						<input type="text" name="username2" id="username2" class="text ui-widget-content ui-corner-all" />
					</p>
					<p class="item">
						<label><i>*</i>账号类型：</label>
						<select id="accounttype2" name="accounttype2">
							<nad:option name="accounttype2" list="#{'':请选择,1:普通账号,2:管理员账号}" />
						</select>
					</p>
				</fieldset>
			</form>
		</div>
		<%@ include file="/WEB-INF/jsp/includes/bottom.jsp"%>
	</body>
</html>


